import {Injectable} from '@angular/core';
import {Hero} from '../app.component';
import {HEROES} from './mock-heroes';

@Injectable()
export class HeroServiceService {

  constructor() {
  }
   getHeroes(): Promise<Hero[]> {
      return Promise.resolve(HEROES);
    }
/*  getHeroes(): Hero[]{
    return HEROES;
  }*/

}
